import Vue from 'vue'
import Vuex from 'vuex'
import state from '@/store/state'
import mutations from '@/store/mutations'
import * as getters from '@/store/getters'
import * as actions from '@/store/actions'

Vue.use(Vuex)

export default new Vuex.Store({
  state, // 保存数据
  getters, // 获取数据
  mutations, // 设置数据
  actions
})
